SRC=Apisockcomm.c
OBJ=Apisockcomm.o Apisockcomm_nonb.o

default:libsockapi.a server client

libsockapi.a: $(OBJ)
	ar -ru $(PROJECT_L_DIR)/libsockapi.a $(OBJ)
	cp Apisockcomm*.h $(PROJECT_H_DIR)

Apisockcomm.o:Apisockcomm.c Apisockcomm.h
	cc -g -w -c Apisockcomm.c
Apisockcomm_nonb.o:Apisockcomm_nonb.c Apisockcomm_nonb.h
	cc -g -w -c Apisockcomm_nonb.c
server:
	cc -g -w -o server server.c -I$(PROJECT_H_DIR) -L$(PROJECT_L_DIR) -lsockapi
client:
	cc -g -w -o client client.c -I$(PROJECT_H_DIR) -L$(PROJECT_L_DIR) -lsockapi
clean:
	rm -f server client  *.o $(PROJECT_L_DIR)/libsockapi.a $(PROJECT_H_DIR)/Apisockcomm.h $(PROJECT_H_DIR)/Apisockcomm_nonb.h
